package com.sikaryofficial.workbench.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sikaryofficial.workbench.domain.dto.req.order.OrderListReq;
import com.sikaryofficial.workbench.domain.dto.resp.order.OrderDTO;
import com.sikaryofficial.workbench.domain.entity.OrderHeader;
import com.sikaryofficial.workbench.mapper.OrderHeaderMapper;
import com.sikaryofficial.workbench.service.IOrderHeaderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 预订单Service业务层处理
 * 
 * @author wuweihong
 * @date 2024-09-23
 */
@Service
@Slf4j
public class OrderHeaderServiceImpl extends ServiceImpl<OrderHeaderMapper, OrderHeader> implements IOrderHeaderService
{

    @Autowired
    private OrderHeaderMapper orderHeaderMapper;

    @Override
    public IPage<OrderDTO> orderList(Page<OrderDTO> customerPage, OrderListReq req, Long userId) {
        return orderHeaderMapper.orderList(customerPage, req, userId);
    }
}
